import React from 'react';
import Loadable from 'react-loadable';
import RouteLoading from 'components/RouteLoading';

export default [
  {
    exact: true,
    path: '/student_center/frequently_asked_questions',
    owner: '/student_center',
    redirect: '/student_center/frequently_asked_questions/layout/FAQ'
  },
  {
    exact: false,
    path: '/student_center/frequently_asked_questions',
    owner: '/student_center',
    component: Loadable({
      loader: () => import('./layout'),
      loading: () => <RouteLoading />
    })
  },
  {
    exact: true,
    path: '/student_center/frequently_asked_questions/layout/FAQ',
    owner: '/student_center/frequently_asked_questions',
    component: Loadable({
      loader: () => import('./index'),
      loading: () => <RouteLoading />
    })
  },
];